package org.ssm.dao;

import org.springframework.stereotype.Repository;
import org.smm.pojo.BookEntry;

import java.util.List;
@Repository("bookMapper")
public interface BookMapper {
    int save(BookEntry bookEntry);
    int delete(int id);
    int update(BookEntry bookEntry);
    BookEntry getOneBook(int id);//得到一条数据

    int getRecordCount(BookEntry bookEntry);//得到总记录数
    List<BookEntry> getBookListByPage(BookEntry bookEntry);//得到所有数据

}
